<?php

class CalendarPeer extends BaseCalendarPeer
{
	public static function getArrayMaterial($id, $reg )
	{
		$c = new Criteria();
		$c->add(CalendarPeer::CUSTOM_INT2,$id);
		if($reg==false)
		{
			$c->add(CalendarPeer::CUSTOM_BOOL1,false);
		}
		else 
		{
			$c->add(CalendarPeer::CUSTOM_BOOL1,true);
		}
		$cl = CalendarPeer::doSelect($c);
		$arr = array();
		foreach($cl as $cc)
		{
			$arr[$cc->getDate()] = $cc->getDate();
		}
		return $arr;
	}
	
	
public static function getArrayNews($id )
	{
		$c = new Criteria();
		$c->add(CalendarPeer::CUSTOM_INT2,$id);
		$cl = CalendarPeer::doSelect($c);
		$arr = array();
		foreach($cl as $cc)
		{
			$arr[$cc->getDate()] = $cc->getDate();
		}
		return $arr;
	}
	
}
